﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Principal;
using Sinacor.Infra.UI.Common;

namespace Sinacor.Infra.UI.Authentication
{
    /// Data:26/07/2008 18:55
    /// Autor:DMilanez.7Comm
    /// Obs:
    public class SinacorIdentity : IIdentity
    {
        #region IIdentity Members

        private string _authenticationType;
        public string AuthenticationType
        {
            get
            {
                return _authenticationType;
            }
            set 
            {
                _authenticationType = value;
            }
        }

        private bool _isAuthenticated;
        public bool IsAuthenticated
        {
            get
            {
                return _isAuthenticated;
            }
            set
            {
                _isAuthenticated = value;
            }

        }

        private string _name;
        public string Name
        {
            get
            {
                return _name;
            }
            set
            {
                _name = value;
            }
        }

        #endregion

        /// <summary>
        /// Identificador do client
        /// </summary>
        private string _clientIdentification;
        public string ClientIdentification
        {
            get { return _clientIdentification; }
            set { _clientIdentification = value; }
        }


        private List<ModuleInformation> _installedModules;
        public List<ModuleInformation> InstalledModules
        {
            get
            {
                if (_installedModules == null)
                    _installedModules = new List<ModuleInformation>();

                return _installedModules;
            }
            set
            {
                _installedModules = value;
            }
        }
    }
}
